# -*- coding: utf-8 -*-
class Student:
    def __init__(self,name,age,gender,score):
        self.name = name
        self.score = score
        self.age=age
        self.gender = gender
    def info(self):
        print(self.name,self.age,self.score,self.gender)
print('请输入五位学生信息(姓名#年龄#成绩#性别)')
lst=[]
for i in range(1,6):
    s=input(f'请输入第{i}个学生的信息和成绩')
    s_lst = s.split('#')
    stu=Student(s_lst[0],s_lst[1],s_lst[2],s_lst[3])
    lst.append(stu)
for item in lst:
    item.info()